The Building Blocks of a Central Application
Table of Contents
The product.xml File
The product.xml file for the sample application looks like this:
<product name="Vera's Sample App"
created="02/01/2004"
version="1.1"
price="Free"
requireVersion="1"
help="productHelp.html"
category="Personal Productivity"
productID="XXXXXX-XXXXXX-XXXXXX-XXXXXX">
<author name="Vera Fleischer" info="http://www.mediasparkles.com/"/>
<description>The Sample App demonstrates use of a Pod, an Agent, Notifications, and Blast.
</description>
<icon src="icons/sample_40.swf" size="40"/>
<application name="VSample App"
src="SampleApp.swf"
width="500" height="500"
help="appHelp.html"
lang="en"
background="#FFFFFF"
version="1.1"
sendto="true">
<icon src="icons/sample_40.swf" size="40"/>
<pod name="Sample App Pod"
src="pod.swf"
height="120"/>
<agent name="Sample App Agent"
src="agent.swf"/>
</application>
</product>
The <pod> and <agent> tags are only necessary if your application includes a pod and an agent. As a comparison, take the product.xml for the Zip Code Info application:
<product name="Zip & Area Code Info"
created="02/01/2004"
version="1.0"
price="Free"
requireVersion="1"
help="productHelp.html"
category="Personal Productivity"
productID=" XXXXXX-XXXXXX-XXXXXX-XXXXXX">
<author name="Vera Fleischer" info="http://www.mediasparkles.com/"/>
<description>This app looks up data based on a U.S. zip code or area code via a web service.
</description>
<icon src="icons/sample_40.swf" size="40"/>
<application name="Zip & Area Code Info"
src="zipcodeinfo.swf"
width="500" height="500"
help="appHelp.html"
lang="en"
background="#FFFFFF"
version="1.0"
sendto="true">
<supportedTypes namespace="http://www.w3.org/2001/XMLSchema" schema="http://download.macromedia.com/pub/central/schemas/CentralData.xsd">
<type>any</type>
</supportedTypes>
<icon src="icons/sample_40.swf" size="40"/>
</application>
</product>
This product.xml file does not have a pod or an agent section because the application
doesn't include any. It does, however, use the <supportedTypes>
tag in order to make it "blast-ready." Another thing to note about the
product.xml file is that as you release new versions of your applications,
all you have to do is increment the value of the version tag and reupload
the product.xml file to the server on which your application's installer
is located. The next time a user starts Central, it will automatically
compare the version in the product.xml file to the version the user
currently has installed and prompt her to update, if her preferences
are set to Automatically check for updates.